<template>
	<view>
		<cu-custom bgColor="bg-white" :isBack="true">
			<block slot="backText"></block>
			<block slot="content">关注公众号</block>
		</cu-custom>
		<view class="hx_bg1 text-center bg-white" style="height: 100%;">
			<image :src="imgurl+'zt_12.png'"></image>
			<view class="text-bold fs28 mt10">关注公众号</view>
			<view class="text-grey fs22 mt10">您还不是我们的会员，请先关注公众号成为会员</view>
			<view class="code-box">
				<image :src="QrCode" mode=""></image>
				<view class="fs22 text-muted">长按识别二维码 关注公众号</view>
			</view>
		</view>

	</view>
</template>

<script>
	import base from 'utils/base.js';
	import tools from 'utils/tools.js';
	export default {
		data() {
			return {
				imgurl: this.$imgurl,
				QrCode:""
			}
		},
		computed: {

		},
		methods: {
			MakeFollowQrCodeNoParams:function(){
             let currentPage = this;
			let params = {
				type: 'GET',
				url: '/api/FaceToFace/MakeFollowQrCodeNoParams',
				data: {},
				sCallback: function(response) {
					if (response.IsSuccess) {
						let qrcode = response.Data;
						currentPage.QrCode = qrcode;
					}
				}
			};
			base.request(params);
			}
		},
		mounted() {
this.MakeFollowQrCodeNoParams();
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #FFFFFF;

		.hx_bg1 {
			padding-top: 100rpx;

			image {
				width: 360rpx;
				height: 360rpx;
			}

		}
		.code-box {
			width:360rpx;
			height:360rpx;
			border:3rpx dashed rgba(229,229,229,1);
			margin: 0 auto;
			display: flex;
			flex-flow: column;
			justify-content: center;
			align-items: center;
			margin-top: 110rpx;
			image {
				width: 220rpx;
				height: 220rpx;
				margin-bottom: 20rpx;
			}
		}
	}
</style>
